home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13969 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nuscc.nus.sg!chngchi1
  2. From: chngchi1@iscs.nus.sg (Benedict CHNG)
  3. Newsgroups: comp.lang.c++
  4. Subject: VC++4.0 Linking Problem ...
  5. Date: 28 Mar 1996 07:23:07 GMT
  6. Organization: National University of Singapore
  7. Message-ID: <4jdeor$9kh@nuscc.nus.sg>
  8. NNTP-Posting-Host: chngchi1%@ibmunx.iscs.nus.sg
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I have no problem generating code that calls mfc40(d).dll but when I
  12. tried to standalone code that doesn't requie mfc40(d).dll, I get a link
  13. error saying that my GDI32.DLL is corrupted.
  14.  
  15. I'm using VC++4.0 on Win95 OS. Program is generated by AppWizard.
  16.  
  17. You see, no many what program I try, I get the same linking problem. Even
  18. those 'virgin' program that's churned out by the AppWizard (ie, they
  19. aren't modified yet in any way). I even try those sample program included
  20. in the 'on-line books'. Just to quote one, I tried that 'minimal hello'
  21. sample. No matter how I tried to tweak the build settings, I just get the
  22. same problem with my debug version, but whenever I tried to run the debug
  23. version out of the developer's studio, I get a debug error too!
  24.  
  25. OK, the output is here :
  26. --------------------Configuration: Helloapp - Win32 Release--------------------
  27. Compiling...
  28. helloapp.cpp
  29. Linking...
  30. gdi32.lib(GDI32.dll) : fatal error LNK1143: invalid or corrupt file: no
  31.                        symbol for comdat section 0x4
  32. Error executing link.exe.
  33. helloapp.exe - 1 error(s), 0 warning(s)
  34.  
  35.  
  36. Ben
  37. PS : I'm really desperate now as my project dateline gets closer.
  38.  
  39.  
  40.